<template>
	<view class="white-block">
		<textarea v-model="comment" @input="handleInput"></textarea>
	</view>
</template>

<script setup>
	import { ref } from 'vue';

	const emit = defineEmits(['change'])

	const comment = ref('')
	const handleInput = e =>{
		comment.value = e.detail.value
		emit('change', comment.value)
	}
</script>

<style>
</style>